<{include file="admin:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right"> 
				<{link ctl="block/block:create" load="mini:添加推荐位" width="mini:600" class="button" title="添加"}>&nbsp; &nbsp;
			</td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr>
		<th class="w-100">ID</th><th>推荐位</th><th>页面</th><th>模块</th>
		<th class="w-150">补充类型</th><th class="w-100">缓存周期</th><th class="w-200">操作</th>
	</tr>
    <{foreach $items as $item}>
    <tr>
		<td class="left"><label><input type="checkbox" value="<{$item.block_id}>" name="block_id[]" CK="PRI"/><{$item.block_id}><label></td>
		<td class="left"><{$item.title}></td><td><{$page_list[$item.page_id].title}></td><td><{$from_list[$item.from]}></td>
        <td><{$item.type_title}></td>
        <td><{$item.ttl_title}></td>
		<td>
			<{link ctl="block/block:detail" args=$item.block_id class="button" title="数据"}>
            <{link ctl="block/block:config" args=$item.block_id load="mini:配置模板" width="mini:600" class="button" title="模板"}>
            <{link ctl="block/block:code" args=$item.block_id class="button" load="mini:配置推荐位" width="mini:550" title="代码"}>
			<{link ctl="block/block:edit" args=$item.block_id load="mini:配置推荐位" width="mini:600" title="配置" class="button"}>
			<{link ctl="block/block:delete" args=$item.block_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
		</td>
	</tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="text-align tip-notice">没有数据</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left"><{link ctl="block/block:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}></td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="admin:common/footer.html"}>